<?php
class helper_viewId extends system_view_helper_abstract {
	
	protected static $_id;	
	public function viewId() {
		if(self::$_id == null) {
			$request = system_controller_front::getInstance()->getRequest();
			$controller = $request->getParam('controller');
			$action = $request->getParam('action');			
			self::$_id = str_replace('_', '-', $controller) . '-' . $action;
		}
		return self::$_id;
	}
	
}